package com.ly.talent.domain;

import com.ly.common.annotation.Excel;
import com.ly.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 学校信息对象 talent_university
 * 
 * @author sfli
 * @date 2021-03-02
 */
public class TalentUniversity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 中文名称 */
    @Excel(name = "中文名称")
    private String name;

    /** 英文名称 */
    @Excel(name = "英文名称")
    private String nameEn;

    /** 排名 */
    @Excel(name = "排名")
    private Long number;

    /** 类型（国内，qs,the,us） */
    @Excel(name = "类型", readConverterExp = "国=内，qs,the,us")
    private String type;

    /** 区域 */
    @Excel(name = "区域")
    private String area;

    private List<TalentSpecialty> talentSpecialtyList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setNameEn(String nameEn) 
    {
        this.nameEn = nameEn;
    }

    public String getNameEn() 
    {
        return nameEn;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setArea(String area) 
    {
        this.area = area;
    }

    public String getArea() 
    {
        return area;
    }

    public List<TalentSpecialty> getTalentSpecialtyList() {
        return talentSpecialtyList;
    }

    public void setTalentSpecialtyList(List<TalentSpecialty> talentSpecialtyList) {
        this.talentSpecialtyList = talentSpecialtyList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("nameEn", getNameEn())
            .append("number", getNumber())
            .append("type", getType())
            .append("area", getArea())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
